<template>
	<view>
		<view>
			<view class="header">
				<view class="content">
					<view class="content1">
						<view class="personal_list">
							<image src="@/static/head.png" />
							<view class="personal_text">
								<text>王小二</text>
								<text>17756989658 维保部</text>

							</view>

						</view>
					</view>
					<view class="content2">
						<view class="personal_list" @click="alltask">
							<image src="@/static/alltask.png" />
							<text >全部任务</text>
						</view>
						<view class="personal_list" @click="notice">
							<image src="@/static/notice.png" />
							<text >消息中心</text>
						</view>
						<view class="personal_list"  @click="setting">
							<image src="@/static/setting.png" />
							<text>设置</text>
						</view>
					</view>
					<view class="content3">
						<view class="personal_list" @click="companys">
							<image src="@/static/companys.png" />
							<text >服务企业列表</text>
						</view>
						<view class="personal_list" @click="question">
							<image src="@/static/problems.png" />
							<text >问题反馈</text>
						</view>
					</view>
				</view>
			</view>

		</view>

	</view>
</template>

<script>
	export default {

		methods: {
			alltask() {
				uni.navigateTo({
					url: './alltask/alltask'
				})
			},
			question() {
				uni.navigateTo({
					url: 'questions'
				})
			},
			setting() {
				uni.navigateTo({
					url: 'setting'
				})
			},
			companys(){
				uni.navigateTo({
					url:'companys'
				})
			},
			notice(){
				uni.navigateTo({
					url:'notice'
				})({
					
				})
			}
		}
	}
</script>

<style lang="scss">
	.header {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		position: relative;
		width: 100%;
		height: 286rpx;
		background: url("@/static/header_bg.png");
	}

	.content {
		position: absolute;
		width: 90%;
		margin: 115rpx 40rpx 0 40rpx;

	}

	.content1 {
		margin: 20rpx auto;
		width: 90%;
		border-radius: 5px;
		height: 220rpx;
		background-color: #FFFFFF;

		.personal_list {
			display: flex;
			flex-direction: row;
			width: 90%;
			padding: 20rpx;

			image {
				height: 130rpx;
				width: 130rpx;
				padding: 36rpx 40rpx;
			}
		}

		.personal_text {
			display: flex;
			flex-direction: column;

			text {
				margin: 25rpx;
			}
		}
	}

	.content2 {
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		background-color: #FFFFFF;
		margin: 20rpx auto;
		width: 90%;
		border-radius: 5px;
		height: 240rpx;

		.personal_list {
			display: flex;
			flex-direction: row;
			width: 90%;
			padding: 20rpx;
			border-bottom: 1px solid #CCCCCC;

			image {
				height: 28rpx;
				width: 28rpx;
				padding: 5rpx;
			}
		}
	}

	.content3 {
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		background-color: #FFFFFF;
		margin: 20rpx auto;
		border-radius: 5px;
		width: 90%;
		height: 160rpx;

		.personal_list {
			display: flex;
			flex-direction: row;
			width: 90%;
			padding: 20rpx;
			border-bottom: 1px solid #CCCCCC;

			image {
				height: 28rpx;
				width: 28rpx;
				padding: 5rpx;
			}
		}
	}
</style>
